home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 July: Mac OS SDK / Dev.CD Jul 97 SDK2.toast / Development Kits (Disc 2) / QuickTime™ VR 2.0 SDK / Documentation + Extras / Updated Interfaces / QuickDraw 3D 1.5 Interfaces / Interfaces / QD3DString.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-05-22  |  2.6 KB  |  90 lines  |  [TEXT/MPS ]

  1. /******************************************************************************
  2.  **                                                                             **
  3.  **     Module:        QD3DString.h                                              **
  4.  **                                                                          **
  5.  **                                                                          **
  6.  **     Purpose:                                                                **
  7.  **                                                                          **
  8.  **                                                                          **
  9.  **                                                                          **
  10.  **     Copyright (C) 1994-1996 Apple Computer, Inc. All rights reserved.     **
  11.  **                                                                          **
  12.  **                                                                          **
  13.  *****************************************************************************/
  14. #ifndef QD3DString_h
  15. #define QD3DString_h
  16.  
  17. #if defined(PRAGMA_ONCE) && PRAGMA_ONCE
  18.     #pragma once
  19. #endif  /*  PRAGMA_ONCE  */
  20.  
  21. #if defined(THINK_C) || defined(__SC__)
  22.     #pragma options(!pack_enums, !align_arrays)
  23.     #pragma SC options align=power
  24. #elif defined(__MWERKS__)
  25.     #pragma enumsalwaysint on
  26.     #pragma align_array_members off
  27.     #pragma options align=native
  28. #elif defined(__PPCC__)
  29.     #pragma options align=power
  30. #elif defined(__xlc) || defined(__xlC) || defined(__xlC__) || defined(__XLC121__)
  31.     #pragma options enum=int
  32. #endif
  33.  
  34. #ifdef __cplusplus
  35. extern "C" {
  36. #endif /*  __cplusplus  */
  37.  
  38.  
  39. /******************************************************************************
  40.  **                                                                             **
  41.  **                                String Routines                                 **
  42.  **                                                                             **
  43.  *****************************************************************************/
  44.  
  45. QD3D_EXPORT TQ3ObjectType QD3D_CALL Q3String_GetType(
  46.     TQ3StringObject        stringObj);
  47.  
  48.  
  49. /******************************************************************************
  50.  **                                                                             **
  51.  **                        C String Routines                                     **
  52.  **                                                                             **
  53.  *****************************************************************************/
  54.  
  55. QD3D_EXPORT TQ3StringObject QD3D_CALL Q3CString_New(
  56.     const char                *string);
  57.  
  58. QD3D_EXPORT TQ3Status QD3D_CALL Q3CString_GetLength(
  59.     TQ3StringObject            stringObj,
  60.     unsigned long            *length);
  61.  
  62. QD3D_EXPORT TQ3Status QD3D_CALL Q3CString_SetString(
  63.     TQ3StringObject            stringObj,
  64.     const char                *string);
  65.  
  66. QD3D_EXPORT TQ3Status QD3D_CALL Q3CString_GetString(
  67.     TQ3StringObject            stringObj,
  68.     char                    **string);
  69.  
  70. QD3D_EXPORT TQ3Status QD3D_CALL Q3CString_EmptyData(
  71.     char                    **string);
  72.  
  73. #ifdef __cplusplus
  74. }
  75. #endif /*  __cplusplus  */
  76.  
  77. #if defined(THINK_C) || defined(__SC__)
  78.     #pragma SC options align=reset
  79. #elif defined(__MWERKS__)
  80.     #pragma enumsalwaysint reset
  81.     #pragma align_array_members reset
  82.     #pragma options align=reset
  83. #elif  defined(__PPCC__)
  84.     #pragma options align=reset
  85. #elif defined(__xlc) || defined(__xlC) || defined(__xlC__) || defined(__XLC121__)
  86.     #pragma options enum=reset
  87. #endif
  88.  
  89. #endif  /*  QD3DString_h  */
  90.